package com.pj.wisdomlogistics.utils;

/**
 * Created by Keroro on 2017/7/20.
 */

public class DateUtils {
    public  static String formatSecondsToHMS(int seconds){
        int temp=0;
        StringBuffer sb=new StringBuffer();
        temp = seconds/3600;
        sb.append((temp<10)?"0"+temp+":":""+temp+":");

        temp=seconds%3600/60;
        sb.append((temp<10)?"0"+temp+":":""+temp+":");

        temp=seconds%3600%60;
        sb.append((temp<10)?"0"+temp:""+temp);

        return sb.toString();
    }

}
